package bulletbehavior 
{
	import org.flixel.FlxG;
	/**
	 * ...
	 * @author morgan
	 */
	public class AccelerateXYBehavior extends BulletBehavior
	{
		public var accelX:Number;
		public var accelY:Number;
		public function AccelerateXYBehavior(accelX:Number = 0.0, accelY:Number = 0)
		{
			this.accelX = accelX;
			this.accelY = accelY;
		}
		
		override public function onUpdate(b:Bullet):void 
		{
			super.onUpdate(b);
			b.velocity.x += accelX * FlxG.elapsed;
			b.velocity.y += accelY * FlxG.elapsed;
			
		}
		
	}

}